<template>
  <div class="start-box">
    <el-button class="start-btn" type="primary" @click="onStart">开始任务</el-button>
  </div>
</template>
<script>
import { defineComponent } from 'vue'
import {useRouter} from 'vue-router'
export default defineComponent({
  name: 'Start',
  setup() {
    const router = useRouter()
    const onStart = () => {
      router.push('/home')
    }
    return {
      onStart
    }
  }
})
</script>
<style scoped>
.start-box {
  text-align: center;
}
.start-btn {
  margin-top: 100px;
}
</style>
